package com.guofen.dao;

import com.guofen.pojo.SjqCompostCraft;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SjqCompostCraftMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SjqCompostCraft record);

    int insertSelective(SjqCompostCraft record);

    SjqCompostCraft selectByPrimaryKey(Integer id);

    SjqCompostCraft getlast();

    int updateByPrimaryKeySelective(SjqCompostCraft record);

    int updateByPrimaryKey(SjqCompostCraft record);

    List<SjqCompostCraft> selectAll();

    List<SjqCompostCraft> selectByDate(@Param("startDate") String startDate,
                                           @Param("endDate") String endDate);
}